package com.alter.zhang.userprovider.impl;

import com.alter.zhang.userprovider.dao.WXUserMapper;
import com.alter.zhang.userprovider.entity.WXUser;
import com.alter.zhang.userprovider.service.WXUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class WXUserServiceImpl implements WXUserService {

    @Autowired
    private WXUserMapper wxUserMapper;


    @Override
    public WXUser finById(Long id) {
        return wxUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public int insert(WXUser record) {
        return wxUserMapper.insert(record);
    }

    @Override
    public WXUser selectByPhone(String phone) {
        return wxUserMapper.selectByPhone(phone);
    }
}
